<%@ page contentType="text/html; charset=utf-8" language="java"  errorPage="" %>
<%@page import="com.bban.util.StringUtil"%>
<%@page import="org.apache.log4j.Logger"%>
<%@page import="com.bban.dto.vo.*"%>
<%@page import="com.bban.db.dao.*"%>
<%@page import="com.bban.entry.UserCenter2"%>
<%@page import="com.bban.util.cfg.DBCfg"%>
<%@page import="com.bban.dto.base.Msg"%>
<%@page import="com.bban.bo.*"%>
<%

String eBabyID = (String)session.getAttribute("eBabyID");


//long ePlayerID = Long.parseLong((String)session.getAttribute("ePlayerID"));
//EbabyUser bUser = new EbabyUser();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>内容</title>
	<link rel="stylesheet" href="themes/blue/style.css" type="text/css" media="print, projection, screen" />
	<script type="text/javascript" src="js/jquery/jquery-latest.js"></script>
	<script type="text/javascript" src="js/jquery/jquery.tablesorter.js"></script>
	<script type="text/javascript" src="js/jquery/chili/chili-1.8b.js"></script>
	<script type="text/javascript" src="js/jquery/docs.js"></script>
	
	<script type="text/javascript">
	$(function() {		
		$("#tablesorter-demo").tablesorter({sortList:[[0,0],[2,1]], widgets: ['zebra']});
		$("#options").tablesorter({sortList: [[0,0]], headers: { 3:{sorter: false}, 4:{sorter: false}}});
	});	
	</script>
</head>
<style type="text/css">
html{height:100%} 

</style>
<link rel="stylesheet" href="images/style.css" />
<body onload="">
<div class="other_right">
		<div class="other_r_left">
			
			<div class="other_map">
				<iframe src="tracking.html?q=<%=eBabyID%>" style="WIDTH: 100%; HEIGHT: 100%; float:right;" scrolling="no"  frameborder="0"></iframe>
			</div>
				<br>
				<table id="tablesorter-demo" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
					<thead>
						<tr>
							<th>序号</th>
							<th>用户名</th>
							<th>经度</th>
							<th>纬度</th>
							<th>定位时间</th>
							<th>速度</th>							
							<th>系统时间</th>
						</tr>

					</thead>
					<tbody>
	
					</tbody>
				</table>
		</div>

		<script type="text/javascript">
			var sequence = 1;

			function addRow(paramElement){	
				var elements;
				elements[0] = paramElement[4];
				elements[1] = paramElement[0];
				elements[2] = paramElement[1];
				elements[3] = paramElement[2];
				elements[4] = paramElement[3];
				elements[5] = paramElement[5];

				var isHave = true;
				$("td").each(function(){
					if($(this).text() == elements[4]){
						isHave = false;
					}
				}); 
				if (isHave){
					var data = "<tr>";
					data = data + "<td>"
					data = data + sequence++;
					data = data + "</td>"
					for (var i=0;i<elements.length;i++){							
						data = data + "<td>"+elements[i];
						data = data + "</td>";
					}
					data = data + "</tr>";
					
					$("#tablesorter-demo").append(data);
				}
			}
		</script>
</div>
</body>
</html>
